import yagmail
def ma(a):
    mm=yagmail.SMTP(user="1244547969@qq.com",password="ecbjoiwyomucjhic",host="smtp.qq.com")
    mm.send(to="1244547969@qq.com",subject="11.6rk测试报告",contents="这是测试报告",attachments=a)